<table>
  <tr>
    <th>Name</th>
    <th>Start</th>
    <th>End</th>
    <th>Approved</th>
    <th>Creator</th>
    <th>Details</th>
  </tr>

<% events.each do |event| %>
  <tr>
    <td><%= event.name %></td>
    <td><%= event.start_at.to_formatted_s(:short) %></td>
    <td><%= event.end_at.to_formatted_s(:short) %></td>
    <td><%= event.approved %></td>
    <td><%= User.find(event.creator_id).username %></td>
    <td><%= link_to 'Show', event %></td>
  </tr>
<% end %>
</table>
